package com.freight.tws.service;

import com.freight.common.core.web.controller.BaseService;
import com.freight.tws.api.domain.Vehicle;

/**
 * 车辆信息Service接口
 *
 * @author ruoyi
 * @date 2022-01-20
 */
public interface IVehicleService extends BaseService<Vehicle> {

    /**
     * 新增车辆
     * @param vehicle
     * @return
     */
    boolean add(Vehicle vehicle);

    /**
     * 车辆审核
     * @param vehicle
     * @return
     */
    int cert(Vehicle vehicle);

    /**
     * 车辆禁/启用
     */
    int stateChange(Vehicle vehicle);

    /**
     * 上传车辆
     */
    boolean upload(Long id);

}
